using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Tool
{
	public class ErrorRecord : Form
	{
		private System.ComponentModel.IContainer components = null;

		private TabControl tcErrorLog;

		public ErrorRecord()
		{
			this.InitializeComponent();
		}

		private void ErrorRecord_Load(object sender, EventArgs e)
		{
			TabControl.TabPageCollection tabPageCollection = new TabControl.TabPageCollection(this.tcErrorLog);
			tabPageCollection.Add(new TabPage
			{
				Text = "运行出错",
				Tag = new DataLog()
			});
			tabPageCollection.Add(new TabPage
			{
				Text = "下载失败",
				Tag = new bt_redown()
			});
			tabPageCollection.Add(new TabPage
			{
				Text = "链接失效",
				Tag = new DataNoEixstsFile()
			});
			this.tcErrorLog.Selected += new TabControlEventHandler(this.tcErrorLog_Selected);
			ErrorRecord.smethod_0(tabPageCollection[0]);
		}

		private void tcErrorLog_Selected(object sender, TabControlEventArgs e)
		{
			TabPage selectedTab = ((TabControl)sender).SelectedTab;
			ErrorRecord.smethod_0(selectedTab);
		}

		private static void smethod_0(TabPage tabPage_0)
		{
			Control value = (Control)tabPage_0.Tag;
			tabPage_0.Controls.Clear();
			tabPage_0.Controls.Add(value);
		}

		//protected override void vmethod_0(bool bool_0)
		//{
		//	if (bool_0 && this.components != null)
		//	{
		//		this.components.Dispose();
		//	}
		//	base.Dispose(bool_0);
		//}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(ErrorRecord));
			this.tcErrorLog = new TabControl();
			base.SuspendLayout();
			this.tcErrorLog.Location = new System.Drawing.Point(12, 15);
			this.tcErrorLog.Margin = new Padding(3, 4, 3, 4);
			this.tcErrorLog.Name = "tcErrorLog";
			this.tcErrorLog.SelectedIndex = 0;
			this.tcErrorLog.Size = new System.Drawing.Size(492, 351);
			this.tcErrorLog.TabIndex = 0;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(516, 379);
			base.Controls.Add(this.tcErrorLog);
			this.Font = new System.Drawing.Font("微软雅黑", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
			base.FormBorderStyle = FormBorderStyle.FixedSingle;
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			base.Margin = new Padding(3, 4, 3, 4);
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "ErrorRecord";
			base.Opacity = 0.96;
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterParent;
			this.Text = "报告";
			base.Load += new EventHandler(this.ErrorRecord_Load);
			base.ResumeLayout(false);
		}
	}
}
